Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for generating error catalog from source code #4047

Merged
merged 19 commits into from
May 27, 2023

Conversation

davidcok
Copy link
Collaborator

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@davidcok davidcok requested a review from atomb May 26, 2023 00:22
@davidcok davidcok enabled auto-merge (squash) May 26, 2023 03:01
Copy link
Member

@atomb atomb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw a few tiny wording things that could possibly be improved, but this otherwise looks great.

Source/DafnyCore/Compilers/CompilerErrors.cs Outdated Show resolved Hide resolved
Source/DafnyCore/Compilers/CompilerErrors.cs Outdated Show resolved Hide resolved
Source/DafnyCore/Compilers/CompilerErrors.cs Outdated Show resolved Hide resolved
Note that a missing body is different than an empty body, which is just `{ }`.
However, the body must be supplied before the program can be compiled,
even if the method is `ghost`.
Body-less loops in ghost methods are similar to unchecked assumptions.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, "similar" may be more accurate.

Source/DafnyCore/Compilers/CompilerErrors.cs Outdated Show resolved Hide resolved
Source/DafnyCore/Compilers/CompilerErrors.cs Outdated Show resolved Hide resolved
davidcok and others added 5 commits May 26, 2023 18:52
Co-authored-by: Aaron Tomb <aarontomb@gmail.com>
Co-authored-by: Aaron Tomb <aarontomb@gmail.com>
Co-authored-by: Aaron Tomb <aarontomb@gmail.com>
Co-authored-by: Aaron Tomb <aarontomb@gmail.com>
Co-authored-by: Aaron Tomb <aarontomb@gmail.com>
atomb
atomb previously approved these changes May 26, 2023
Copy link
Member

@atomb atomb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you still need to check in the generated error catalog, but otherwise 🚢 .

@davidcok
Copy link
Collaborator Author

Yep - first time using the process, so you need to push the approve button again. -- Optimistically presuming the tests will succeed

@davidcok davidcok merged commit 80b81c0 into dafny-lang:master May 27, 2023
@davidcok davidcok deleted the cok-compiler-errors-2 branch May 27, 2023 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants